package com.yonyou.cyxdms.sysAuth.service.dto.notification;

import com.yonyou.cyx.function.utils.bean.BeanMapperUtil;
import com.yonyou.cyxdms.framework.bean.dto.base.DMSBaseDTO;
import com.yonyou.cyx.framework.bean.entity.base.BasePO;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yonyou.cyx.function.utils.jsonserializer.localdatetime.JsonLocalDateTimeDeserializer;
import com.yonyou.cyx.function.utils.jsonserializer.localdatetime.JsonLocalDateTimeSerializer;

/**
 * <p>
 * 通知通告之车厂角色
 * </p>
 *
 * @author chengliang
 * @since 2019-09-17
 */

public class NotificationOemRoleDTO extends DMSBaseDTO implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 通知通告之车厂角色ID
	 */
	private Long notificationOemRoleId;


	/**
	 * 通知通告ID
	 */
	private Long notificationId;


	/**
	 * 角色ID
	 */
	private Long roleId;


	/**
	 * 角色名称
	 */
	private String roleName;


	/**
	 * 角色代码
	 */
	private String roleCode;


	/**
	 * 是否删除
	 */
	private Boolean isDeleted;



	public NotificationOemRoleDTO() {
		super();
	}


	public Long getNotificationOemRoleId() {
		return notificationOemRoleId;
	}

	public void setNotificationOemRoleId(Long notificationOemRoleId) {
		this.notificationOemRoleId = notificationOemRoleId;
	}

	public Long getNotificationId() {
		return notificationId;
	}

	public void setNotificationId(Long notificationId) {
		this.notificationId = notificationId;
	}

	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleCode() {
		return roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	public Boolean getDeleted() {
		return isDeleted;
	}

	public void setDeleted(Boolean isDeleted) {
		this.isDeleted = isDeleted;
	}

	@Override
	public String toString() {
		return "NotificationOemRoleDTO{" +
		"notificationOemRoleId=" + notificationOemRoleId +
		", notificationId=" + notificationId +
		", roleId=" + roleId +
		", roleName=" + roleName +
		", roleCode=" + roleCode +
		", isDeleted=" + isDeleted +
		"}";
	}
	/**
	 * 将DTO 转换为PO
	 * //对某个对象属性进行赋值
	 * //BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
	 * @param poClass dto 需要转换的dto
	 * @author chengliang
	 * @since 2019-09-17
	 */
	@Override
	public <T extends BasePO> T transDtoToPo(Class<T> poClass) {
		return super.transDtoToPo(poClass);
	}

	/**
	 * 将DTO 转换为PO
	 * BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
	 * @param po 需要转换的对象
	 * @author chengliang
	 * @since 2019-09-17
	 */
	public <T extends BasePO> void transDtoToPo(T po) {
		BeanMapperUtil.copyProperties(this, po, "notificationOemRoleId");
	}

}
